package com.xiaotu.iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 张晓
 * @create 2020-06-25 19:43
 */
public class Client {
    public static void main(String[] args) {
        //创建学院
        List<Colleage> colleageList = new ArrayList<Colleage>();
        ComputerColleage computerColleage = new ComputerColleage();
        InfoColleage infoColleage = new InfoColleage();
        colleageList.add(computerColleage);
        colleageList.add(infoColleage);
        OutPutImpl outPut = new OutPutImpl(colleageList);
        outPut.printColleage();
    }
}
